import request from "@/utils/request";

/**
 * @description 总仓库礼品
 * @param {Object} data
 */
export function integralGoods (params = {}) {
  // 接口请求
  return request({
    url: 'integral/goods',
    method: 'get',
    params
  })
}
/**
 * @description 新增物品
 * @param {Object} data
 */
export function integralAddgoods (data = {}) {
  // 接口请求
  return request({
    url: 'integral/addgoods',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 编辑物品
 * @param {Object} data
 */
export function integralEditgoods (data = {}) {
  // 接口请求
  return request({
    url: 'integral/editgoods',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 删除物品
 * @param {Object} data
 */
export function integralDelete (data = {}) {
  // 接口请求
  return request({
    url: 'integral/delete',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 入库物品
 * @param {Object} data
 */
export function integralRu (data = {}) {
  // 接口请求
  return request({
    url: 'integral/ru',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 损耗物品
 * @param {Object} data
 */
export function integralSun (data = {}) {
  // 接口请求
  return request({
    url: 'integral/sun',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 分配物品
 * @param {Object} data
 */
export function integralFen (data = {}) {
  // 接口请求
  return request({
    url: 'integral/fen',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 网点礼品
 * @param {Object} data
 */
export function integralTeamgoods (params = {}) {
  // 接口请求
  return request({
    url: 'integral/teamgoods',
    method: 'get',
    params
  })
}
/**
 * @description 礼品兑换
 * @param {Object} data
 */
export function integralDuihuan (params = {}) {
  // 接口请求
  return request({
    url: 'integral/duihuan',
    method: 'get',
    params
  })
}
/**
 * @description 礼品记录
 * @param {Object} data
 */
export function integralGoodslog (params = {}) {
  // 接口请求
  return request({
    url: 'integral/goodslog',
    method: 'get',
    params
  })
}
/**
 * @description 网点礼品记录
 * @param {Object} data
 */
export function integralTeamgoodslog (params = {}) {
  // 接口请求
  return request({
    url: 'integral/teamgoodslog',
    method: 'get',
    params
  })
}
/**
 * @description 礼品管理
 * @param {Object} data
 */
export function rigoodsList (params = {}) {
  // 接口请求
  return request({
    url: 'rigoods/list',
    method: 'get',
    params
  })
}
/**
 * @description 站点损耗物品
 * @param {Object} data
 */
export function rigoodsSun (data = {}) {
  // 接口请求
  return request({
    url: 'rigoods/sun',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 站点损耗物品
 * @param {Object} data
 */
export function rigoodsDui (data = {}) {
  // 接口请求
  return request({
    url: 'rigoods/dui',
    method: 'post',
    data,
    isJSON: false
  })
}
/**
 * @description 站点兑换记录
 * @param {Object} params
 */
export function rigoodsLog (params = {}) {
  // 接口请求
  return request({
    url: 'rigoods/log',
    method: 'get',
    params
  })
}
/**
 * @description 站点礼品记录
 * @param {Object} params
 */
export function rigoodsGoodslog (params = {}) {
  // 接口请求
  return request({
    url: 'rigoods/goodslog',
    method: 'get',
    params
  })
}
